package com.turing.comment.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

@FeignClient("merchant-server")
public interface MerchantService {

    /** 20102商家详情(PC) */
    @GetMapping("/merchant/mer/getMerById")
    Result getMerById(@RequestParam(value = "id") String id);

    /** 20104修改商家(PC) */
    @PatchMapping("mer/merEdit")
    public Result merEdit(@RequestBody JSONObject jsonObject);

}
